<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    p {
      float: left;
      padding: 10px;
    }

    .p1 {
      float: right;
    }

      button {
      float: right;
      margin-top: 30px;
      margin-left: 10px;
      /* outline: none; */
      border: none;
      background: none;
    }
  </style>
</head>

<body>
  <div>
    <p>新闻</p>
    <p>hao123</p>
    <p>地图</p>
    <p>视频</p>
    <p>贴吧</p>
    <p>学术</p>
    <p>更多</p>
    <div>
    <button>登陆</button>
      <!-- <input type="button" value="登陆"> -->
    </div>

    <p class="p1">设置</p>
  </div>
</body>

</html>